;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages javascript abc2svg)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix utils)
  #:use-module (guix build-system node))

(define-public abc2svg
  (package
    (name "abc2svg")
    (version "1.21.6")
    (source
      (origin
        (method url-fetch)
        (uri (string-append
               "https://chiselapp.com/user/moinejf/repository/abc2svg/tarball/"
               "afc1222e02/"
               name
               "-afc1222e02"
               ".tar.gz"))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
          (base32 "1mwfbp0n48y8vdy187q7brp90f3hxzhn4l31lb9whj0wsc560pas"))))
    (build-system node-build-system)
    (arguments
      `(#:tests? #f)) ; There are no tests.
    (home-page "https://chiselapp.com/user/moinejf/repository/abc2svg/")
    (synopsis "ABC music notation translator")
    (description
"@code{abc2svg} is a set of ECMAscript files that handle the ABC music
notation.  This includes editing, displaying, printing, playing the
music files and converting them to other formats such as ABC and MEI
notations.")
    (license license:expat)))

